Skip to content

Conversation

@vbabich
Copy link
Contributor

@vbabich vbabich commented Dec 17, 2025

Add filter support for pivot table ColumnBy sources.

  • Update IrisGridPivotRenderer and IrisGridPivotMetricCalculator to render filter input boxes in the column header groups. Filter boxes take all available space to the left of the ColumnBy labels.
  • Update IrisGridPivotModel to expose and apply filters on the underlying pivot table.

@vbabich vbabich self-assigned this Dec 17, 2025
@vbabich vbabich changed the title Pivot-plugin-filters feat: Pivot filter UI Dec 17, 2025
@vbabich vbabich marked this pull request as ready for review January 15, 2026 14:37
@vbabich vbabich requested a review from mofojed January 16, 2026 15:48
Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor question/nitpick. looks good overall.

Comment on lines +6 to +7
* Hook that creates a pivot metric calculator
* @returns Pivot metric calculator
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say this returns a factory for creating a pivot metric calculator, since it's returning a function that creates the pivot metric calculator, not the pivot metric calculator itself.

* @returns Pivot metric calculator
*/
export function usePivotMetricCalculator(): GetMetricCalculatorType {
return useMemo(() => args => new IrisGridPivotMetricCalculator(args), []);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use ... in case more parameters are added? Though I guess most likely we'll just keep one arg anyway and then keep adding to that...

Suggested change
return useMemo(() => args => new IrisGridPivotMetricCalculator(args), []);
return useMemo(() => (...args) => new IrisGridPivotMetricCalculator(...args), []);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants